<?php
	include 'dbConnection.php';

	$result = mssql_query("EXECUTE GetKierunki");

	while($row = mssql_fetch_array($result)) {
		echo '<span id="dir_'.$row['id'].'" onclick="getStopnie('.$row['id'].')">'.$row['nazwa'].'</span>';
	}
	mssql_free_result($result);
	mssql_close($con);
?>
